<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.5.4.2/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/icon.css"/>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.5.4.2/themes/black/easyui.css"/>
<script type="text/javascript"
	src="<c:url value="/js/common.js"/>"></script>
</head>
<body>
<script type="text/javascript">


		$(function() {								
 		//显示数据
		$("#lwc_table_choose").datagrid({
			fit:true,
			toolbar:'#lwc-customer-function-tb_2',
			border:false,
			fitColumns:true,
			url:'get_all_csinfo_page',
			method:'get',
			singleSelect:true,
			pagination:true,
			columns:[[     
            {field:'xx',title:'',width:1,checkbox:true},
	        {field:'custId',title:'编号',width:1},    
	        {field:'custCname',title:'简称',width:1},  
	        {field:'custName',title:'客户名称',width:1},      
	        {field:'cjustKinds',title:'种类',width:1,formatter: function(value,row,index){ if(value==1){return '客户';}
         							 if(value==2){return '供应商';}
         							 if(value==3){return '合作伙伴';}
         							 if(value==4){return '媒体';}
         							 if(value==5){return '其他';}}},    
	        {field:'custCycle',title:'生命周期',width:1,formatter: function(value,row,index){if(value==1){return '潜在';}
         							else if(value==2){return '签约';}
         							else if(value==3){return '重复购买';}
         							else if(value==4){return '失效';}}},    
	        {field:'custAddress',title:'地址',width:1},    
	        {field:'custOperat',title:'拥有者',width:1},    
	        {field:'custPhone',title:'电话',width:1},    
	        {field:'custSrc',title:'来源',width:1},    
	        {field:'custCreatedata3',title:'创建日期',width:1.5}, 
	        {field:'custUpdate',title:'更新日期',width:1.5}, 
	        {field:'custRemarks',title:'备注',width:1}]]
		});				
	})
				
		
</script>
<style>
.sep{
margin-top:15px;
margin-left:10px;
}
#lwc_customer_insert{

}
</style>


    <!-- 数据表格 -->
	<table id="lwc_table_choose" class="easyui-datagrid">
	</table>	
	<!-- 功能按钮 -->
	<div id="lwc-customer-function-tb_2">
	          <div id="lwc_all_info" style="margin-top:10px;margin-left:20px; float:left;">
                  
        		  <input class="easyui-searchbox" style="width:200px;" data-options="menu:'#mm',prompt:'客户名称',
        		  searcher:function(value,name){
				$('#lwc_table_choose').datagrid({pageNumber:1, url: 'getCsinfoByCnamewhere'});

				$('#lwc_table_choose').datagrid('load', {key: value});

			}" />
						 <div id="mm" style="width:150px">
							  <div data-options="name:'item1',selected:true">客户名称</div>
							  <div data-options="name:'item2'"><a>高级查询</a></div>
							  
						</div>          
                </div>
	       
    </div>

    


    
</body>
</html>